package com.nondo.rdp.finance.service.log;


import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.auth.endpoint.model.Page;
import com.nondo.rdp.finance.domain.log.SignLog;

import java.util.Date;
import java.util.List;

public interface SignLogService {
    /**
     * 保存签到
     *
     * @param signLog
     */
    SignLog save(SignLog signLog);

    /**
     * 分页查询签到列表
     *
     * @param page
     * @param signLog
     * @return
     */
    Page<SignLog> findAll(Page<SignLog> page, SignLog signLog);

    /**
     * 根据用户和签到时间区域查询签到日志记录
     *
     * @param user
     * @param createStartDate
     * @param createEndDate
     * @return
     */
    List<SignLog> findByUserAndCreateDateBetween(User user, Date createStartDate, Date createEndDate);

    /**
     * 查询当天签到记录
     *
     * @param user
     * @param createStartDate
     * @return
     */
    SignLog findByUserAndCreateDateAfter(User user, Date createStartDate);
}
